package com.example.maoyanmovie.ui.activity;

import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.example.maoyanmovie.databinding.ActivityOrderListBinding;

public class OrderListActivity extends AppCompatActivity {

    private ActivityOrderListBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityOrderListBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        initView();
        loadOrders();
    }

    private void initView() {
        binding.ivBack.setOnClickListener(v -> finish());
    }

    private void loadOrders() {
        // 显示空状态
        binding.recyclerView.setVisibility(View.GONE);
        binding.tvEmpty.setVisibility(View.VISIBLE);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        binding = null;
    }
}
